Method and system for the automated delineation of lung regions and costophrenic angles in chest radiographs

ABSTRACT

A method, system, and computer product for the automated segmentation of the lung fields and costophrenic angle (CP) regions in posteroanterior (PA) chest radiographs, wherein image segmentation based on gray-level threshold analysis is performed by applying an iterative global gray-level thresholding method to a chest image based on the features of a global gray-level histogram. Features of the regions in a binary image constructed at each iteration are identified and analyzed to exclude regions external to the lung fields. The initial lung contours that result from this global process are used to facilitate a local gray-level thresholding method. Individual regions-of-interest (ROIs) are placed along the initial contour. A procedure is implemented to determine the gray-level thresholds to be applied to the pixels within the individual ROIs. The result is a binary image, from which final contours are constructed. Smoothing processes are applied, including a unique adaptation of a rolling ball method. CP angles are identified and delineated by using the lung segmentation contours as a means of placing ROIs that capture the CP angle regions. Contrast-based information is employed on a column-by-column basis to identify initial diaphragm points, and maximum gray-level information is used on a row-by-row basis to identify initial costal points. Analysis of initial diaphragm and costal points allows for appropriate adjustment of CP angle ROI positioning. Polynomial curve-fitting is used to combine the diaphragm and costal points into a continuous, smooth CP angle delineation. This delineation is then spliced into the final lung segmentation contours. In addition, quantitative information derived from the CP angle delineations is used to assess the presence of abnormal CP angles.

[0001] The present invention was made in part with U.S. Government support under grant numbers CA48985 and T32 CA09649 from the USPHS. The U.S. Government has certain rights in the invention.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] The invention relates generally to a method and system for the computerized, automatic delineation of the lung fields in chest radiographs. Specific application is given for the delineation of the costophrenic angles in digitized chest radiographs. Novel developments and implementations include techniques for delineation and splicing of the costophrenic angles with the segmented lung, and improvements in lung segmentation and the assessment of abnormal asymmetry.

[0004] The present invention also relates to CAD techniques for automated detection of abnormalities in digital images, for example as disclosed in one or more of U.S. Pat. Nos. 4,839,807; 4,841,555; 4,851,984; 4,875,165; 4,907,156; 4,918,534; 5,072,384; 5,133,020; 5,150,292; 5,224,177; 5,289,374; 5,319,549; 5,343,390; 5,359,513; 5,452,367; 5,463,548; 5,491,627; 5,537,485; 5,598,481; 5,622,171; 5,638,458; 5,657,362; 5,666,434; 5,673,332; 5,668,888; as well as U.S. application Ser. Nos. 08/158,388; 08,173,935; 08/220,917; 08/398,307; 08/428,867; 08/523,210; 08/536,149; 08/536,450; 08/515,798; 08/562,188; 08/562,087; 08/757,611; 08/758,438; 08/900,191; 08/900,361; 08/900,362; 08/900,188; 08/900,192; 08/900,189; 08/979,623; 08/979,639; 08/982,282; Ser. No. ______ (Attorney Docket No. 730-022-20 filed on Feb. 23, 1998); and Ser. No. ______ (Attorney Docket No. 730-023-20 filed on Feb. 23, 1998), each of which are incorporated herein by reference in their entirety.

[0005] The present invention also relates to technologies referenced and described in the references identified in the appended APPENDIX and cross-referenced throughout the specification by reference to the number, in brackets, of the respective reference listed in the APPENDIX, the entire contents of which, including the related patents and applications listed above and references listed in the APPENDIX, are incorporated herein by reference.

[0006] 2. Discussion of the Background

[0007] The utility of image processing techniques in diagnostic radiology of the chest has become more pronounced with the growing acceptance of digital radiography, including both direct-digital acquisition and conventional film acquisition with subsequent digitization [1]. Techniques for image enhancement such as density correction and unsharp masking [2] have, for example, been used to reduce quality variations in portable chest radiographs and to reduce the number of repeat examinations required due to exposure errors [3]. Image compression, image transfer protocols, intelligent long-term storage techniques, and interactive display consoles are currently being developed for use with picture archiving and communication systems (PACS) [4].

[0008] Various image processing methods are being assimilated into computer-aided diagnostic (CAD) schemes [5]. Such schemes have been developed for the detection of lung nodules [6-11], interstitial infiltrates [8,12-14,11], pneumothoraces [15], cardiomegaly [16,17], and interval change [18].

[0009] Inherent in all these schemes is an underlying knowledge of the lung field location in the digital chest radiograph. This has been achieved through the automated detection of intercostal spaces [19], rib borders [20-22], the ribcage edge [23], and the complete lung boundary [24,25]. To detect intercostal spaces, Powell et al. utilized vertical gray-level profiles, to which shift-variant sinusoidal functions were fit [19]. Sanada et al. employed a similar method to detect posterior rib borders [21]. Statistical analysis of edge gradients and their orientations was then performed within small regions-of-interest (ROIs) to detect subtle continuous rib edges. Wechsler and Sklansky fit linear, parabolic, and elliptical curve segments to the output of gradient and threshold operators to delineate the boundaries of anterior and posterior ribs [20]. Chen et al. used edge gradient analysis to determine whether ROIs used for lung texture analysis overlapped rib edges [22]. Xu and Doi analyzed the first and second derivatives of gray-level profiles to delineate the ribcage edge [23]. Polynomial functions were then fit to initially detected edges. Cheng and Goldberg applied a clustering algorithm to the gray-level histogram computed from a selected region of an image to identify a single gray-level threshold for lung segmentation. The resulting borders were then refined using linear and parabolic curve-fitting techniques. Pietka delineated lung borders using a single threshold determined from the gray-level histogram of a selected region [25]. Gradient analysis was then employed to extend the edges.

[0010] Others have directly addressed the segmentation of lung fields for the detection of abnormal asymmetry [26], for the development of radiographic equalization techniques [27], or for use with region-specific display enhancement techniques [28-30]. Duryea and Boone devised a lung segmentation method based on gray-level profiles and contrast information [27]. To selectively enhance the mediastinum and subdiaphragm, Sherrier and Johnson applied histogram equalization techniques to areas determined through local gray-level histogram analysis to be within these regions [28]. Sezan et al. identified a lung/mediastinum threshold in the gray-level histogram to perform adaptive unsharp masking in these different anatomic regions [29]. McNitt-Gray et al. developed a pattern classification scheme implementing stepwise discriminant analysis as a basis for feature selection, which was then used to train classifiers [30]. Clearly, automated segmentation of the lung fields in chest images has many practical applications in addition to its role as a foundation for various CAD schemes.

[0011] With the exception of interval change detection, most CAD schemes currently being developed for digital chest radiography are specific to one particular pathology. These schemes often utilize a priori information regarding the “normal” appearance of the ribcage, diaphragm, and mediastinum in a chest image. A potential problem arises when the nature of the thoracic abnormality is such that it substantially affects the volume of the lungs. A large-scale abnormality of this type will usually cause abnormal asymmetry on the radiograph due to a substantial decrease in the area of the aerated lung field (i.e., the high optical density region associated with the normally low attenuation of the lungs) in one hemithorax as projected onto the radiograph. This can substantially alter the overall morphology of the thorax, which, while apparent to a radiologist, could result in the failure of computerized schemes. Such abnormalities would include dense infiltrates, substantial pleural effusions, large neoplasms, extensive atelectasis, pneumonectomy, elevated hemidiaphragm, or cardiomegaly.

[0012] A normal PA chest radiograph acquired with the patient properly positioned demonstrates two well-defined CP angles, which represent radiographic projections of the costodiaphragmatic recesses. The costal and diaphragmatic aspects of the normal CP angle converge to form a typically sharp, acute angle. Any observed deviations from this configuration may provide the radiologist with important diagnostic information.

[0013] A variety of physical and pathologic conditions may be manifested in the CP angle. In the upright chest examination, for example, non-loculated fluid in the pleural space will collect under the influence of gravity in the costodiaphragmatic recess. Such a pleural effusion will radiographically alter the appearance of the CP angle by blunting the normally sharp appearance of the anatomic recess [31,32]. In another example, the characteristic flattening of the diaphragm present in patients with emphysema will typically extend into the CP angle region, causing the costal and diaphragmatic aspects of the CP angle to converge at a less acute angle [31,34]. In addition, fibrotic or infiltrative processes in the lung bases may simply obscure the CP angle [35].

SUMMARY OF THE INVENTION

[0014] Accordingly, an object of this invention is to provide an improved method and system for segmenting lung fields in chest images.

[0015] It is another object of the present invention to provide an automated method and system for the delineation and/or quantitative analysis of the costophrenic angles in chest images.

[0016] It is yet another object of the present invention to provide a method and system for integrating delineated costophrenic angles with lung fields in order to better define the lung field and/or asymmetries.

[0017] These and other objects are achieved according to the present invention by providing a new and improved method, system, and computer product wherein a global threshold analysis of a PA chest image is performed to create a binary image of the chest region. The lung fields are identified in the chest region, and lung segmentation contours corresponding to the identified lung fields are constructed for the PA chest image.

[0018] Delineation and quantitative analysis of the lung fields is performed by generating a digital PA chest image which includes both CP angles. The left and right CP angles are delineated on the PA chest image so that the angle formed by the left and right CP angle margins can be determined.

[0019] The delineated CP angles are integrated with the lung fields in order to better define the lung fields and/or asymmetries. Once an initial set of lung segmentation contours is determined, the CP angle margins are separately delineated. The CP angle margins are then spliced to the initial set of lung segmentation contours to produce a final set of lung segmentation contours.

BRIEF DESCRIPTION OF THE DRAWINGS

[0020] A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:

[0021]FIG. 1 is a flowchart illustrating the automated method for the segmentation of the aerated lung fields in digital chest radiographs;

[0022]FIG. 2 is a photograph/illustration which demonstrates the lung apex and midline determination, with row-averaged horizontal gray-level profiles shown for two sets of five consecutive rows;

[0023]FIG. 3 is a photograph/illustration which demonstrates the result of Sobel filter application to the lower right quadrant of the image shown in FIG. 2;

[0024]FIG. 4 is a graph illustrating a typical global gray-level histogram for PA chest images, identifying the range of gray-levels used during iterative global gray-level thresholding;

[0025] FIGS. 5(a) and 5(b) are photographs/illustrations of two binary images created by thresholding the image shown in FIG. 2 at two different gray-levels;

[0026]FIG. 6 is an illustration of a chest image demonstrating contours detected during an intermediate iteration, with contours labeled 1 passing the centroid check and contours labeled 2 failing the centroid check;

[0027] FIGS. 7(a) and 7(b) are photographs/illustrations of binary images demonstrating the effect of the centroid check (FIG. 7(a)) and the morphological open operation (FIG. 7(b));

[0028] FIGS. 8(a) and 8(b) are photographs/illustrations of the initial set of lung contours resulting from iterative global gray-level thresholding before (FIG. 8(a)) and after (FIG. 8(b)) smoothing for the image shown in FIG. 2;

[0029] FIGS. 9(a) and 9(b) are photographs/illustrations which demonstrate the local gray-level thresholding technique showing ROI placement along the smoothed initial contours with the gray-level histogram of the bolded ROI indicating its selected threshold (FIG. 9(a)) and the composite binary image created by thresholding pixels within individual ROIs (FIG. 9(b));

[0030]FIG. 10 is a photograph/illustration which depicts a set of lung contours for the image shown in FIG. 9(a) after local thresholding and smoothing;

[0031]FIG. 11 is an illustration for describing the rolling ball algorithm for identifying depressions in a contour, with the indentation at Position 1 not deep enough to qualify as a depression, while Position 2 is considered a depression;

[0032]FIG. 12 is a photograph/illustration which depicts the lung segmentation contours resulting from iterative global gray-level thresholding and demonstrates the placement of the CP angle ROIs during local gray-level thresholding;

[0033]FIG. 13 is a flowchart showing the substeps performed during CP angle delineation;

[0034]FIG. 14 is a photograph/illustration of a PA chest image demonstrating severe pleural effusion in the left hemithorax with placement of the second-stage CP angle ROIs indicating a difference in vertical position between the ROIs sufficient to classify the left CP angle as abnormal without subsequent delineation;

[0035]FIG. 15 is a photograph/illustration which depicts the CP angle subimage extracted from the right hemithorax of a normal PA chest image, with the locations of the first (most medial) diaphragm point and first (most superior) costal point shown along with the search regions used to locate the corresponding second points;

[0036] FIGS. 16(a) and 16(b) are photographs/illustrations which depict the CP angle subimage demonstrating initial diaphragm and costal points (FIG. 16(a)) and the least-squares parabolas fit to the initial points (FIG. 16(b));

[0037] FIGS. 17(a) and 17(b) are photographs/illustrations which depict “diaphragm points” along the top rows of the subimage indicating the ROI is too inferior (FIG. 17(a)) and “costal points” along the edge of the subimage indicating the ROI is too medial (FIG. 17(b));

[0038] FIGS. 18(a) and 18(b) are photographs/illustrations which demonstrate incorporation of CP angle delineations into the final lung segmentation contours;

[0039]FIG. 19 is a photograph/illustration which demonstrates the ability of the CP angle delineation to rectify the final contours which would otherwise fail to adequately capture the aerated region of the right hemithorax;

[0040]FIG. 20 is an illustration of the CP angle delineation points used to compute the angle measure associated with each CP angle;

[0041]FIG. 21 is a graph of ROC curves for abnormal CP angle detection using 1166 completely imaged CP angles;

[0042]FIG. 22 is a schematic illustration of a general purpose computer 100 programmed according to the teachings of the present invention;

[0043]FIG. 23 is a block diagram of a system for implementing the method of the invention for the segmentation of lung fields in PA chest radiographs and the delineation of CP angles in PA chest radiographs; and

[0044]FIG. 24 is a flowchart showing the substeps performed during iterative global gray-level thresholding analysis.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0045] A method for accurately segmenting the aerated lung fields in posteroanterior (PA) chest images can be used to detect the presence of abnormal asymmetry. Detection of these abnormalities are useful in CAD schemes for digital chest radiography and in prioritizing abnormal cases in a PACS environment.

[0046] In conjunction with our lung segmentation method, we have developed a technique for delineating the CP angle margin in PA chest images [36]. The contour segments so delineated are automatically spliced into the final contours encompassing the aerated lung fields. Not only does the CP angle delineation technique result in contours that more accurately capture a clinically important anatomic region, but it is capable of rectifying lung contours that might otherwise fail to provide an acceptable segmentation. Consequently, the CP angle delineation technique is an integral part of the overall lung segmentation scheme.

[0047] We have explored the potential benefit of the CP angle delineation technique as an independent CAD tool. Quantitative measurements of the angle formed by the delineated costal and diaphragmatic margins provide a measure of CP angle blunting or obscuration. We have employed these computer-determined measurements to identify abnormal CP angles. While the task of identifying a CP angle is straightforward for a human observer, blunting of the CP angle may be overlooked by a radiologist during clinical interpretation, especially when the lung fields are being scrutinized for other pathology. Moreover, quantification of this anatomic region will provide radiologists with additional diagnostic information. As primary interpretation from display monitors gains acceptance, a variety of automated analyses will routinely be performed prior to the radiologist viewing the images; assessment of the CP angles represents another such computational tool.

[0048] Therefore, we have developed a fully automated technique for segmenting the aerated lung fields in PA chest images. An independent technique is applied to more accurately include the CP angles in the segmentation. This segmentation method is robust with regard to the overall morphology of the chest and, in addition, is well-suited for detecting abnormal asymmetry in PA chest images.

[0049] Referring now to the drawings, and more particularly to FIG. 1 thereof, a flowchart provides an overview of the automated method for the delineation of the lung fields and the assessment of the costophrenic angle in chest images. The overall scheme includes an initial acquisition of a radiographic image and digitization in step S1. Then, in step S2, horizontal gray-level profile analysis is used to determine the location of the lung apices and the midline in the image. Next, in step S3 a gray-level histogram is constructed from a large rectangular ROI located near the central portion of the image. The maxima and minima of this histogram are analyzed to identify a range of gray-levels that will be used during the iterative global gray-level thresholding process. In step S4 Sobel filtering is applied to the image. Then, in step S5 iterative global gray-level threshold analysis is performed. Seven iterations are performed using progressively larger gray-level thresholds from the identified gray-level range [26]. At each iteration, a binary image is constructed in which only pixels having a corresponding image pixel gray-level less than the threshold are turned “on”. An eight-point connectivity scheme is employed to construct contours around each group of contiguous “on” pixels. Gray-level profiles constructed through the center-of-mass (centroid) of each such contour are analyzed to determine whether the contour encompasses pixels belonging to the lung fields. Pixels in contours determined to be outside the lung fields are prevented from contributing to binary images created at later iterations. A set of initial contours results after the seventh iteration. To capture the aerated lung field more completely, in step S6 a local gray-level thresholding technique is implemented along the initial contours. A final contour set is constructed based on a composite binary image created by thresholding pixels within the individual local ROIs. Next, in step S7 the contours are smoothed, and then, in step S8 a rolling ball algorithm is employed to eliminate large-scale irregularities in the contours. Lung segmentation is completed in step S10 after a procedure for delineating the costophrenic (CP) angles is applied in step S9.

[0050] Horizontal gray-level profiles are analyzed to determine the location of the patient midline and the lung apices in each image. The midline position is used throughout the scheme to distinguish between right and left hemithoraces. The apex location effectively identifies an upper bound in the image above which no lung pixels are expected to exist.

[0051] A series of row-averaged horizontal gray-level profiles is constructed for the upper one-third of the image by considering groups of rows five at a time. The profiles are then analyzed for gray-level maxima and minima. Centrally located maxima are identified in each profile, which will contain two such maxima if the trachea is prominent or a single maximum otherwise. The midline position is defined as the average x-position of all such maxima in all profiles.

[0052]FIG. 2 shows an image produced as a result of lung apex and midline determination. Row-averaged horizontal gray-level profiles from two sets of five consecutive rows are shown for a normal PA image. The computer-determined lung apex and midline positions are indicated by the bright horizontal line and the vertical line segment, respectively.

[0053] The lung apex is located based on the profile minima. Although right and left lung apices may occur at different rows due to patient rotation in the image plane, a single row representing the more superior of the apices is identified to serve as an upper bound on the lung fields in the image. Consequently, both hemithoraces (now distinguished by the midline) are considered separately. The lowest minimum on each side of the midline is identified in all profiles, provided that the gray-level of this minimum is between 15% and 85% of the central maximum gray-level. This range was established by observing that a minimum below 15% is probably within the direct-exposure region, while a minimum above 85% represents a profile deviation that is too minor to consider. The lung apex is then identified as the row corresponding to the first profile such that the lowest minima of the succeeding (i.e., inferior) two profiles have lower gray-levels.

[0054] In step S4 a Sobel filter is convolved with the lower right quadrant of the image (i.e., the patient's left side) to accentuate the diaphragm border and the lower ribcage edge, thereby preventing lucencies caused by bowel gas from merging with lung contours at higher gray-level thresholds. Pixels in the image quadrant representing strong, appropriately directed gradients as determined by the filtered images are set to an arbitrary gray-level value of 999 which is high enough to exceed any realistic threshold range identified through global gray-level histogram analysis. This enhancement acts as an artificial boundary that will not allow penetration of the left lung contour. FIG. 3 shows the result of Sobel filter application to the lower right quadrant of the image of FIG. 2. Filtered pixels with values that exceed a threshold are assigned a gray-level of 999 in the image.

[0055] A global gray-level histogram is used to initiate the segmentation scheme. In an effort to obtain more uniform histograms, the calculation of the histogram is limited to a 181×141-pixel region centered 140 pixels from the top of the image, i.e., a region effectively centered over the thorax. A typical region will contain high-density (low gray-level) pixels belonging to lung as well as low-density (high gray-level) pixels belonging to more radio-opaque structures such as the mediastinum, ribcage edge, and diaphragm. Consequently, the histogram resulting from such a region tends to be bimodal, with one peak centered over lower gray-levels (the “lung peak”) and another centered over higher gray-levels (the “mediastinum peak”). FIG. 4 is a typical global gray-level histogram demonstrating characteristic bimodal distribution. The arrows indicate the peak containing pixels belonging predominantly to lung and the minimum between the lung and the mediastinum peaks, respectively, as determined by the computer. The arrows mark the range of gray-levels used in the iterative thresholding technique.

[0056] The slope of the global gray-level histogram is used to identify the gray-level at which the lung peak occurs and the gray-level at which the minimum between the lung and mediastinum peaks occurs. These points are used in step S5 to bound a range of gray-levels during iterative global gray-level thresholding. The iterative process is defined by successive thresholding at seven equally spaced gray-levels within the range. Step S5 includes substeps S501 through S508 as shown in FIG. 24.

[0057] In substep S501 a binary image is created during the first iteration using the lowest of the seven gray-levels (i.e., the highest optical density of the range) as the threshold value. Pixels are turned “on” in the binary image if the corresponding pixel in the radiographic image has a gray-level less than the threshold. This first threshold will obviously produce a binary image with fewer “on” pixels than any subsequent binary image. The resulting binary image is sent through a contour detection routine, which in substep S502 utilizes an eight-point connectivity scheme to construct contours representing the boundaries of groups of contiguous “on” pixels [38]. Then, in substep S503 the contour detection routine calculates important geometric properties of these contours, such as the center-of-mass (centroid) of the contour, contour compactness, contour length (in terms of pixels), and the area enclosed within the contour (in terms of pixels) [39].

[0058] In substep S504 the gray-level threshold is increased for each subsequent iteration. Thus, subsequent iterations create additional binary images based on successively larger gray-level thresholds. FIGS. 5(a) and 5(b) show two binary images created by thresholding the image shown in FIG. 2 at two different gray-levels. A lower gray-level threshold was used to construct FIG. 5(a) than was used to construct FIG. 5(b). Contours are again constructed around regions of contiguous “on” pixels in substep S502, and geometric parameters of each contour are calculated in substep S503.

[0059] The iterative aspect of this process encourages proper lung segmentation. For any given threshold value, pixels belonging to the direct exposure region outside the patient will be turned “on” in the binary image (since these pixels will have gray-levels below the lowest gray-level threshold) along with pixels belonging to lung (the pixels of interest, which typically possess relatively low gray-levels). Moreover, at intermediate threshold values, regions such as bowel gas, the trachea, portions of the shoulder, and subcutaneous tissue will also be turned “on”. Consequently, unless pixels from these non-lung fields are suppressed, the contours around these regions will merge with the contours encompassing actual lung at the higher threshold values.

[0060] To prevent merging, in substep S505 a centroid check is performed for each contour constructed at each iteration. See Armato et al., “Automated Lung Segmentation in Digital Posterior Chest Radiographs,” Academic Radiology (in press), which is incorporated by reference herein. A horizontal gray-level profile is obtained through the image pixel representing the contour's centroid, extending from the midline column to the corresponding edge of the image. The positions and gray-levels of maxima and minima relative to the position and gray-level of the centroid pixel are used to assess whether the contour encompasses a region of the lungs. Depending on the location of the centrold, a vertical gray-level profile beginning at the centroid and extending to the top or bottom of the image is also analyzed to provide additional information about the region included within the contour. If the centroid check indicates that the contour exists outside the lung field, in substep 506 all image pixels enclosed by the contour are prohibited from contributing to the binary images (and hence the contours) created at later iterations. FIG. 6 shows a chest image demonstrating contours detected during an intermediate iteration. Contours labeled 1 pass the centroid check. Contours labeled 2 fail the centroid check. Accordingly, pixels within these latter contours are prevented from being turned “on” during subsequent iterations. These external regions are thus prevented from merging with regions within the lungs at later iterations where the threshold gray-level is greater and the likelihood of such a merge is increased. Lung contours resulting from the higher threshold values utilized during later iterations are thus able to extend more toward the lung periphery without the risk of contours that would otherwise encompass non-lung fields “leaking through” the lung boundary to combine with the lung contour. This situation would typically occur along portions of the lung boundary that are more radiolucent such as the inferior lateral margins of the ribcage and the left hemidiaphragm in the presence of bowel gas. FIGS. 5(b) and 7(a) show the binary images that result when the centroid check is not and is implemented, respectively. The binary image of FIG. 7(a) is analogous to the binary image shown in FIG. 5(b) except that a centroid check has been performed during previous iterations.

[0061] The process of thresholding to create a binary image, identifying contours, and suppressing pixels based on a centroid check is repeated for each of the seven iterations, with the threshold values used to produce the binary images increasing at each iteration. A morphological open operation [37] with a 3×3-pixel kernel is applied to the binary images during each of the final three iterations. FIG. 7(b) shows the result of performing a morphological open operation on the binary image of FIG. 7(a) to remove slender artifacts. This combination of an erosion operation followed by a dilation operation eliminates many of the slender artifacts that remain “on” in the binary image as a result of the process that suppresses regions of the image based on the centroid check. The end result of the global gray-level thresholding scheme is an initial set of contours representing the aerated lung fields in the image.

[0062] Since the initial contours tend to appear somewhat irregular, a smoothing scheme is applied that utilizes a running mean algorithm. This substitutes for the x- and y-positions of each contour point the average x- and y-positions of nine preceding and nine succeeding contour points. In addition, points that are redundant in an eight-point connectivity sense are eliminated from the contours.

[0063]FIG. 8(a) shows an initial set of lung contours resulting from iterative global gray-level thresholding for the image shown in FIG. 2. FIG. 8(b) shows the result of smoothing the contours of FIG. 8(a).

[0064] The initial contours based on global gray-level thresholding tend to under-represent the actual aerated lung fields shown in FIG. 8(b). To rectify this situation, in step S6 a local gray-level thresholding scheme is applied to the output of the global thresholding scheme of step S5. Overlapping ROIs with dimension 31×31 pixels are centered at every 30th pixel along the initial contours. The ROI dimensions required to adequately perform local thresholding depend on the degree to which the contours resulting from global thresholding approximate the actual lung borders. We selected a single ROI size (31×31 pixels) based on empirical observations of the initial contours. FIG. 9(a) demonstrates ROI placement along the smoothed initial contours of FIG. 8(b).

[0065] Although all initial contours are retained, local thresholding is performed only on the two largest contours in the image, and then only if these contours occupy different hemithoraces. ROIs are assigned one of two location categories (medial or lateral) as they are placed along the initial contours in a counterclockwise manner, beginning with the superiormost point of each contour.

[0066] Gray-level analysis is performed on pixels within each ROI, and a gray-level threshold is determined separately for the individual ROIs based on their location categories. The threshold for a medial ROI is defined as the mean gray-level of pixels within the ROI. For a lateral ROI, a gray-level histogram is constructed from all pixels within the ROI, and the initial threshold is set to the gray-level at which the minimum with the largest gray-level occurs (i.e., the rightmost minimum in the histogram, excluding the endpoint) as indicated by the arrow in FIG. 9(a). The threshold actually used for a lateral ROI is the average of its initial threshold and that of the two adjacent ROIs. A composite binary image is then created by thresholding the pixels in each ROI based on the threshold value selected for that ROI such that a pixel is turned “on” in the binary image if its corresponding image pixel has a gray-level less than the chosen threshold. FIG. 9(b) shows the composite binary image created by thresholding pixels within the individual ROIs. The contour detection scheme is applied to the composite binary image to construct the final contours, which are then smoothed in step S7 in the same manner as the initial contours previously discussed. FIG. 10 shows the resulting lung contours for the image of FIG. 9(a) after local thresholding and smoothing is applied.

[0067] Large-scale aberrations are sometimes present in the final contours, appearing as depressions or protrusions. These typically occur in the apex region, where a dense clavicle may cause the contour to bow inwards in order to exclude the highest-gray-level portion of the clavicle (thus forming a depression in the contour), or a relatively radiolucent region of the shoulder may erroneously be captured by the contour, causing it to extend outwards (forming a protrusion). In step S8 a rolling ball algorithm is adapted from Sternberg to address this problem. The rolling ball presented by Sternberg is a spherical structuring element used to process images through gray scale opening and closing operations [40]. A ball is conceptually rolled along the three-dimensional surface representing gray-level as a function of spatial position in the image; filtering occurs where depressions exist in this surface that are sharp enough to prevent the ball of a specified radius to remain in contact with the surface. The rolling ball we define analogously rolls along the two-dimensional curve defined by a lung contour. Depressions are identified where the rolling ball is unable to remain in contact with the contour.

[0068]FIG. 11 is an illustration of the rolling ball algorithm for identifying depressions in a contour. The indentation at Position 1 is not deep enough to qualify as a depression, while Position 2 is considered a depression, because it prevents the ball from remaining in contact with the contour. Applying the algorithm to the external side of the contour eliminates depressions, while applying it to the internal side eliminates protrusions.

[0069] A circular filter (the “ball”) is constructed with radius 13 pixels for internal application or 25 pixels for external application. These radii were chosen to match the observed size of protrusions and depressions that tend to be present along the contours. The ball is “rolled” along the contour by successively identifying that pixel along the ball's circumference with a tangential slope that matches the slope of the current contour point; the filter is then positioned to align the selected ball circumference pixel with the contour pixel. If a depression of the proper scale is encountered, the ball will overlap the contour at some contour point other than the point of contact used to place the filter as shown by Position 2 in FIG. 11. This overlap point along with the point of contact define endpoints of the depression. Linear interpolation is then employed to create new contour points that connect the depression endpoints, effectively bridging the gap in the contour and eliminating the depression.

[0070] The contours produced in this manner tend to under-represent the costophrenic angles. To accommodate this important anatomic feature, first stage CP angle ROI placement is performed as part of the local thresholding process. During first stage CP angle ROI placement, a vertically oriented ROI (31×61 pixels) is placed over the initial contour point with the greatest distance from the opposite upper corner of the image. The ROI placed in this manner is presumed to encompass the actual CP angle. However, in some cases, the initial segmentation contours under-represent the lung to such an extent that this ROI fails to encompass the CP angle at this step. The average gray-level of the pixels within this ROI is defined as the threshold, which is then used to create another portion of the composite binary image. This is performed for each hemithorax. FIG. 12 shows the result of first stage ROI placement on the lung segmentation contours resulting from global threshold analysis. The shaded pixels represent those that will contribute to the composite binary image, which is used to construct the final lung segmentation contours.

[0071] Referring back to FIG. 1, in step S9 costophrenic angle delineation is performed to extend the lung segmentation contours closer to the actual CP angle border. As shown by the flowchart of FIG. 13, step S9 is inclusive of substeps S901 through S911.

[0072] In substep S901 second stage CP angle ROI placement is performed by placing ROIs on the smoothed contours resulting from local threshold analysis. For each lung segmentation contour, a 31×61-pixel ROI is placed with its center at the new contour pixel most distant from the contralateral upper corner of the image. Then, in substep S902 the relative positions of the second-stage CP angle ROIs for right and left lung segmentation contours are compared. If the vertical position of either CP angle ROI lies superior to that of the other ROI by 35 rows or more, second-stage analysis is not performed for the more superior ROI. Such a discrepancy in position is presumed to result from an abnormality in the lung base that reduces the aerated lung volume, thereby causing the lung segmentation scheme to exclude the base. FIG. 14 shows a PA chest image demonstrating severe pleural effusion in the left hemithorax with placement of the second-stage CP angle ROIs indicating a difference in vertical position between the ROIs sufficient to classify the left CP angle as abnormal without subsequent delineation. This type of abnormality would typically render the CP angle imperceptible and an attempted delineation meaningless. For these cases, the CP angle is labeled abnormal in substep S903, and the delineation procedure is terminated.

[0073] The subimage defined by each CP angle ROI is then further analyzed. In substep S904 the diaphragm border is delineated. The highest contrast pixel in the medial-most column of this subimage is identified as the first diaphragm point, where contrast is defined as the difference between gray-levels of the pixels immediately below and above the current pixel divided by the gray-level of the current pixel. Eleven consecutive pixels in the adjacent column form a search region for the next diaphragm point. These pixels extend from four rows above the row of the first diaphragm point to six rows below it; the downward trend of the diaphragmatic border as it courses laterally justifies this asymmetry. The pixel at which the largest gray-level difference between neighboring pixels occurs is identified as the next diaphragm point. FIG. 15 is a CP angle subimage extracted from the right hemithorax of a normal PA chest image. The locations of the first (most medial) diaphragm point and first (most superior) costal point are shown along with the search regions used to locate the corresponding second points. This process continues for subsequent columns in the subimage until a complete set of diaphragm points is obtained. Columns cease contributing diaphragm points when an upward trend in the diaphragm points is detected; such a trend occurs when columns outside the lung field are examined. A similar trend could result from pathology in the CP angle, in which case elimination of these diaphragm points would be incorrect; however, the costal delineation tends to compensate for this omission. FIG. 16(a) shows a CP angle subimage with initial diaphram points denoted by bright pixels. In substep S905 a least-squares parabola is calculated to define a continuous curve that best fits these diaphragm points as shown. This curve delineates the diaphragmatic margin of the CP angle. FIG. 16(b) shows the result (in bright pixels) of a least-squares parabola fit to the initial diaphragm points of FIG. 16(a).

[0074] Next, in substep S906 the costal border is delineated. The first costal point is identified as the maximum-gray-level pixel in the top row of the subimage. The search region in the adjacent row consists of nine consecutive pixels, which are symmetrically positioned about the column containing the first costal point as shown in FIG. 15. The next costal point is chosen from among these nine as the one with maximum gray-level. Selection of costal points in subsequent rows continues in this manner until a costal point that lies inferior to the diaphragm curve is identified. FIG. 16(a) shows a CP angle subimage with initial costal points denoted by dark pixels. Then, in substep S907 a least-squares parabola is used to fit a continuous curve through these costal points, thus delineating the costal margin of the CP angle. FIG. 16(b) shows the result (in dark pixels) of a least-squares parabola fit to the initial costal points of FIG. 16(a). The diaphragmatic and costal margins are truncated at (or extended to) their point of intersection to form a single, continuous curve within the subimage. It remains for this curve to be properly integrated with the final lung segmentation contour as a whole. Furthermore, once delineation is complete in substep S908, quantitative analysis of the angle subtended by the diaphragmatic and costal margins of the CP angle is performed to assess the presence of an abnormality.

[0075] A number of checks are implemented during the CP angle delineation procedure to assess the accuracy of ROI placement. In substep S909 if it is determined that pixels identified as diaphragm points are located in the top two rows of the subimage, the CP angle ROI is considered too inferior as shown in the image of FIG. 17(a); accordingly, the ROI is moved superiorly, and the process returns to substep S901 so that CP angle delineation is repeated. Similarly, in substep S910 if it is determined that pixels identified as costal points are located along the lateral edge of the subimage, the ROI is too medial and must be moved laterally as shown in FIG. 17(b). Moreover, if in substep S911 it is determined that the diaphragm and costal curves fail to intersect in the ROI, then the ROI is moved to include the intersection. Several iterations of ROI repositioning may occur before the ROI is determined to include the CP angle.

[0076] Referring back to FIG. 1, once the CP angles have been delineated, in step S110 they are integrated with the overall lung segmentation to form a continuous contour. This is achieved using linear interpolation to connect costal and diaphragmatic splice points identified through a slope-matching technique. For the costal aspect of each CP angle margin, the slope at the superiormost delineation point is calculated. The slope of successive points along the corresponding lung contour is then examined starting with the contour point closest to the top row of the subimage region. The appropriate splice point in the lung contour has the same slope as the superiormost costal delineation point, which is the other splice point. Linear interpolation is used to connect these two splice points. The same process is applied to the diaphragmatic margin.

[0077] FIGS. 18(a) and 18(b) show the results of incorporating CP angle delineations into final lung segmentation contours. In FIG. 18(a) the subimages containing CP angle delineations replace the corresponding regions in the chest image of FIG. 12. In FIG. 18(b) CP angle delineations are shown integrated with the lung contours as a result of using linear interpolation to connect splice points (indicated by the hash marks).

[0078] This process, along with the ROI position verification procedure previously discussed, allows a lung segmentation contour that inadequately captures the lung field to be effectively extended to include the CP angle, thereby reducing the area of aerated lung omitted from the segmentation contour. FIG. 19 shows the lung segmentation contours (in white) prior to CP angle delineation for a normal image. These fail to adequately capture the aerated region of both lungs. The contour segments shown in black serve to rectify the final contours after CP delineation and splicing are performed. Lung segmentation is now complete.

[0079] The quantifiable angle subtended by the convergence of the costal and diaphragmatic curves forming the CP angle delineation may be used to evaluate the presence of CP angle blunting or obscuration: a blunt CP angle as demonstrated on the image should yield an angle measure greater than the angle measure of a normal CP angle. The point of intersection between the costal and diaphragmatic aspects of the CP angle delineation is identified as a vertex that together with the tenth point from the vertex along each of the two delineation aspects defines the computer-extracted angle measure. FIG. 20 illustrates the CP angle delineation points used to compute the angle measure associated with each CP angle. The CP angles in a 600-image database were separately analyzed quantitatively by the computer and qualitatively by a radiologist. Both hemithoraces of each image were separately evaluated by a radiologist using a 4-point rating scale for the degree of CP angle blunting (O=normal, I=slightly blunt or obscure, 2=intermediate blunting, 3=severely blunt or obscure). Receiver operating characteristic (ROC) analysis [41] was performed using the calculated angle of the computer-determined CP angle delineations as the decision variable. Each CP angle was evaluated individually based on its own angle measure in relation to the rating assigned by the radiologist. The resulting ROC curves are shown in FIG. 21. The curves are based on 1166 usable CP angles, which excludes 34 CP angles (of the 1200 total in the database) that were not completely imaged due to improper patient positioning. Although the automated segmentation scheme can accommodate this situation, the calculated values for such cut-off CP angles are without physical meaning. As previously discussed, CP angle delineation is not performed in a hemithorax if the CP angle ROI in that hemithorax is 35 rows or more superior to the CP angle ROI in the contralateral lung, since we assume that such a hemithorax is abnormal to the extent that attempted CP angle delineation would be meaningless. Consequently, these CP angles are assigned an artificial value of 180 degrees for the purpose of automated quantitative analysis. The median computer-determined angle measures for CP angles assigned a radiologist rating of 0 (normal), 1 (slightly blunt), 2 (intermediate blunting), or 3 (severe blunting) were 42.4 degrees, 57.2 degrees, 57.9 degrees, and 90.0 degrees, respectively.

[0080]FIG. 21 shows three ROC curves, which differ with respect to the criterion for considering an angle “truly” abnormal. When the strictest definition of abnormal is applied (i.e., only CP angles with a radiologist assessment rating of 3), A_(z)=0.83±0.031. With abnormal defined by a rating of 2 or 3, the A_(z) value is 0.78±0.027. Lastly, with abnormal defined by a radiologist assessment rating of 1, 2, or 3, the A_(z) value is 0.75±0.023. All A_(z) values were obtained using the LABROC4 software package [42].

[0081] This invention may be conveniently implemented using a conventional general purpose digital computer or microprocessor programmed according to the teachings of the present specification, as will be apparent to those skilled in the computer art. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.

[0082] The present invention includes a computer program product which is a storage medium including instructions which can be used to program a computer to perform a process of the invention. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, CD-ROMs, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions.

[0083]FIG. 22 is a schematic illustration of a general purpose computer 100 programmed according to the teachings of the present invention. The general purpose computer 100 includes a computer housing 102 having a motherboard 104 which contains a CPU 106 and memory 108. The computer 100 also includes plural input devices, e.g., a keyboard 122 and mouse 124, and a display card 110 for controlling monitor 120. In addition, the computer system 100 further includes a floppy disk drive 114 and other removable media devices (e.g., tape, and removable magneto-optical media (not shown)), a hard disk 112, or other fixed, high density media drives, connected using an appropriate device bus, e.g., a SCSI bus or an Enhanced IDE bus. Also connected to the same device bus or another device bus, the computer 100 may additionally include a compact disc reader/writer 118 or a compact disc jukebox (not shown).

[0084] Stored on any one of the above described storage medium (computer readable media), the present invention includes programming for controlling both the hardware of the computer 100 and for enabling the computer 100 to interact with a human user. Such programming may include, but is not limited to, software for implementation of device drivers, operating systems, and user applications. Such computer readable media further includes programming or software instructions to direct the general purpose computer 100 to perform tasks in accordance with the present invention.

[0085] The programming of general purpose computer 100 includes, but is not limited to, software modules for digitizing and storing PA radiographs obtained from an image acquisition device, determining the lung apex and midline, performing gray-level histogram analysis, applying a Sobel filter, performing iterative global gray-level thresholding, performing local gray-level thresholding, performing contour smoothing, applying a rolling ball filter, identifying costophrenic angles in an appropriate subimage, splicing subimage contours, superimposing lung segmentation results onto images, storing the lung segmentation results in file format, or providing the lung segmentation results in text format. Utilizing the above software modules, the programming of general purpose computer 100 also includes high level software modules that perform automated segmentation of the lung field in chest images, delineation and quantitative analysis of costophrenic angles in chest images, and integration of delineated costophrenic angles with lung fields.

[0086] The invention may also be implemented by the preparation of application specific integrated circuits or by interconnecting an appropriate network of conventional component circuits, as will be readily apparent to those skilled in the art.

[0087]FIG. 23 is a block diagram of a system for implementing the method of the invention for the segmentation of lung fields in PA chest radiographs and the delineation of CP angles in PA chest radiographs. PA radiographs of an object are obtained from an image acquisition device and input to the system 1000. Each image is digitized and put into memory 1001. If the image is obtained with a direct digital device then there is no need for digitization. The image data is first passed through the lung apex and midline determination unit 1002, and then to the gray-level histogram analysis unit 1003 and also to the Sobel filter unit 1004. The data are passed through to the iterative global gray-level thresholding unit 1005. Contour data from the iterative global gray-level thresholding circuit are passed to the local gray-level thresholding unit 1006. Contour data from the local gray-level thresholding circuit are then passed to the smoothing unit 1007 and to the rolling ball filter unit 1008. Contour data are then passed to the CP angle ROI placement unit 1009 to identify appropriate subimages. The subimages data are sent to the diaphragm border point selection unit 1010 and the diaphragm parabolic curve-fitting unit 1011. The subimage data and diaphragm contour data are then sent to the ribcage border point selection unit 1012 and the ribcage parabolic curve-fitting unit 1013. The diaphragm border point selection unit 1010 and the ribcage border point selection unit 1012 provide feedback data to the CP angle ROI placement unit 1009. The diaphragm and ribcage delineation data is then passed to the splicing unit 1014. In the superimposing unit 1015 the results are either superimposed onto images, stored in file format, or given in text format. The results are then displayed on the display 1020 after passing through a digital-to-analog converter 1030.

[0088] Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein. 

What is claimed as new and desired to be secured by Letters Patent of the United States is:
 1. A method for identifying lung fields within a chest region based on posteroanterior chest radiographic images, comprising: generating first image data representative of a posteroanterior chest image inclusive of lung fields; performing global threshold analysis of the posteroanterior chest image by processing said first image data to generate a processed image of the chest region inclusive of the lung fields; identifying the lung fields in said processed image of the chest region; and constructing, based on said lung fields identified in said processed image, first initial lung segmentation contours for said posteroanterior chest image.
 2. The method according to claim 1, further comprising: performing global gray-level histogram analysis of said posteroanterior chest radiographic image to identify a maximum gray-level and a minimum gray-level designating a gray-level threshold range; wherein said performing global threshold analysis further comprises: a) generating a binary image having pixels having either a first logic level or a second logic level based on a gray-level threshold within said gray-level threshold range, said binary image providing said processed image; b) repeating substep a) a predetermined number of times at progressively larger gray-level thresholds within the gray-level threshold range; and c) processing said binary image to eliminate pixels outside the lung fields.
 3. The method according to claim 2, wherein substep c) comprises: constructing intermediate lung segmentation contours representing boundaries of groups of contiguous pixels having said first logic level; determining the centroid for each of said intermediate lung segmentation contours; detecting centroids outside the lung fields; and prohibiting regions of the binary image defined by intermediate lung segmentation contours having centroids outside the lung fields from having said first logic level during subsequent iterations of substep a) generating.
 4. The method according to claim 3, wherein said performing global threshold analysis further comprises: smoothing the intermediate lung segmentation contours constructed during the last iteration of said generating a binary image to provide said first initial lung segmentation contours.
 5. The method according to claim 1, further comprising: performing, based on said first initial lung segmentation contours, local threshold analysis to construct second initial lung segmentation contours for said posteroanterior chest image.
 6. The method according to claim 5, wherein said performing local threshold analysis comprises: positioning regions-of-interest (ROIs) along said first initial lung segmentation contours; performing local gray-level thresholding within each of said ROIs; generating a composite binary image based on said performing local gray-level thresholding; and constructing based on said composite binary image said second initial lung segmentation contours for said posteroanterior chest image.
 7. The method according to claim 5, further comprising: applying a rolling ball filter to said second initial lung segmentation contours to eliminate large-scale concavities in said second initial lung segmentation contours and to construct for said posteroanterior chest image third initial lung segmentation contours representative of lung fields.
 8. The method according to claim 1, further comprising: delineating costophrenic angle margins for each of said lung fields; and constructing final lung segmentation contours based on said first initial lung segmentation contours and said costophrenic angle margins.
 9. The method according to claim 8, wherein said constructing final lung segmentation contours comprises: performing local global thresholding analysis to construct second initial lung segmentation contours based on said first initial lung segmentation contours; and splicing said costophrenic angle margins to said second initial lung segmentation contours to construct said final lung segmentation contours.
 10. The method according to claim 8, wherein said delineating costophrenic angle margins comprises: a) placing costophrenic regions of interest (ROIs) over approximate locations of each costophrenic angle as determined based on the first initial lung segmentation contours; b) identifying diaphragm border points within each of said ROIs; c) identifying costal border points within each of said ROIs; d) checking the placement of said ROIs at least once to determine whether the ROIs were positioned accurately in substep a); and e) repeating substeps a) through d) if it is determined in substep d) that the ROIs were not accurately positioned in substep a).
 11. The method according to claim 8, wherein said delineating costophrenic angle margins comprises: determining whether said posteroanterior chest image exhibits an abnormal hemithorax.
 12. A method for analyzing costophrenic angles in chest images, comprising: generating a radiographic chest image inclusive of a left hemithorax having a left costophrenic angle and of a right hemithorax having a right costophrenic angle; delineating in said radiographic chest image a left costophrenic margin and a right costophrenic margin corresponding to the left and right costohprenic angles, respectively; and determining the angles formed by each of said left and right costophrenic margins.
 13. The method according to claim 12, wherein said delineating said left and right costophrenic margins comprises: determining whether one of said left and right hemithoraxes is abnormal based upon the spatial relation between the left and right costophrenic margins.
 14. The method according to claim 12, wherein said delineating left and right costophrenic margins comprises: placing costophrenic regions of interest (ROIs) having predetermined dimensions over approximate locations of said left and right costophrenic angles in said radiographic chest image.
 15. The method according to claim 14, wherein said delineating left and right costophrenic margins further comprises: identifying initial diaphragmatic points within each of said costophrenic ROIs.
 16. The method according to claim 15, wherein said identifying initial diaphragmatic points comprises: a) selecting as a first initial diaphragmatic point for each of said costophrenic ROIs a pixel in a most medial column having the highest contrast; b) selecting as a subsequent initial diaphragmatic point in each of said costophrenic ROIs a pixel in a predetermined search region lateral to a column containing a last selected initial diaphragmatic point; c) determining if there is an upward trend in the initial diaphragm points; and d) repeating substeps b) and c) if no upward trend is detected in substep c); wherein said delineating left and right costophrenic margins further comprises: fitting a parabolic curve to the diaphragm points which do not contribute to the upward trend determined in substep c) to construct a diaphragmatic curve.
 17. The method according to claim 16, wherein said delineating left and right costophrenic margins further comprises: identifying initial costal points within each of said costophrenic ROIs.
 18. The method according to claim 17, wherein said identifying initial costal points further comprises: e) selecting as the first initial costal point for each of said left and right costophrenic ROIs a pixel in an uppermost row in each of said costophrenic ROIs having a highest gray-level; f) selecting as a subsequent initial costal point in each costophrenic angle ROI a pixel in a predetermined search region inferior to a row containing a last selected initial costal point; and g) repeating substep f) until in substep f) a costal point is selected that is inferior to said diaphragmatic curve.
 19. The method according to claim 12, further comprising: assigning a degree of costophrenic angle abnormality for at least one of said left and right costophrenic angles based on a measurement angle defined by a vertex located at the intersection between the costal and diaphragmatic curves and by two lines extending from the vertex to predetermined points along the costal and diaphragmatic curves, respectively.
 20. A computer readable medium storing computer instructions for identification of lung fields within a chest region based on posteroanterior chest radiographic images, by performing the steps of: generating first image data representative of a posteroanterior chest image inclusive of lung fields: performing global threshold analysis of the posteroanterior chest image by processing said first image data to generate a processed image of the chest region inclusive of the lung fields; identifying the lung fields in said processed image of the chest region; and constructing, based on said lung fields identified in said processed image, first initial lung segmentation contours for said posteroanterior chest image.
 21. The medium of claim 20, wherein the computer instructions further comprise: performing global gray-level histogram analysis of said posteroanterior chest radiographic image to identify a maximum gray-level and a minimum gray-level designating a gray-level threshold range; and wherein the computer instructions for said performing global threshold analysis further comprise: a) generating a binary image having pixels having either a first logic level or a second logic level based on a gray-level threshold within said gray-level threshold range, said binary image providing said processed image; b) repeating substep a) a predetermined number of times at progressively larger gray-level thresholds within the gray-level threshold range; and c) processing said binary image to eliminate pixels outside the lung fields.
 22. The medium of claim 21, wherein the computer instructions for said substep c) comprise: constructing intermediate lung segmentation contours representing boundaries of groups of contiguous pixels having said first logic level; determining the centroid for each of said intermediate lung segmentation contours; detecting centroids outside the lung fields; and prohibiting regions of the binary image defined by intermediate lung segmentation contours having centroids outside the lung fields from having said first logic level during subsequent iterations of said generating a binary image.
 23. The medium of claim 22, wherein the computer instructions for said performing global threshold analysis further comprise: smoothing the intermediate lung segmentation contours constructed during the last iteration of said generating a binary image to provide said first initial lung segmentation contours.
 24. The medium of claim 20, wherein the computer instructions further comprise: performing, based on said first initial lung segmentation contours, local threshold analysis to construct second initial lung segmentation contours for said posteroanterior chest image.
 25. The medium of claim 24, wherein the computer instructions for said performing local threshold analysis comprise: positioning regions-of-interest (ROIs) along said first initial lung segmentation contours; performing local gray-level thresholding within each of said ROIs; generating a composite binary image based on said performing local gray-level thresholding; and constructing based on said composite binary image said second initial lung segmentation contours for said posteroanterior chest image.
 26. The medium of claim 24, wherein the computer instructions further comprise: applying a rolling ball filter to said second initial lung segmentation contours to eliminate large-scale concavities in said second initial lung segmentation contours and to construct for said posteroanterior chest image third initial lung segmentation contours representative of lung fields.
 27. The medium of claim 20, wherein the computer instructions further comprise: delineating costophrenic angle margins for each of said lung fields; and constructing final lung segmentation contours based on said first initial lung segmentation contours and said costophrenic angle margins.
 28. The medium of claim 27, wherein the computer instructions for said constructing final lung segmentation contours comprise: performing local global thresholding analysis to construct second initial lung segmentation contours based on said first initial lung segmentation contours; and splicing said costophrenic angle margins to said second initial lung segmentation contours to construct said final lung segmentation contours.
 29. The medium of claim 27, wherein the computer instructions for said delineating costophrenic angle margins comprise: a) placing costophrenic regions of interest (ROIs) over approximate locations of each costophrenic angle as determined based on the first initial lung segmentation contours; b) identifying diaphragm border points within each of said ROIs; c) identifying costal border points within each of said ROIs; d) checking the placement of said ROIs at least once to determine whether the ROIs were positioned accurately in substep a); and e) repeating substeps a) through d) if it is determined in substep d) that the ROIs were not accurately positioned in substep a).
 30. The medium of claim 27, wherein the computer instructions for said delineating costophrenic angle margins comprises: determining whether said posteroanterior chest image exhibits an abnormal hemithorax.
 31. A computer readable medium storing computer instructions for analysis of costophrenic angles in chest images, by performing the steps of: generating a radiographic chest image inclusive of a left hemithorax having a left costophrenic angle and of a right hemithorax having a right costophrenic angle; delineating in said radiographic chest image a left costophrenic margin and a right costophrenic margin corresponding to the left and right costohprenic angles, respectively; and determining the angles formed by each of said left and right costophrenic margins.
 32. The medium of claim 31, wherein the computer instructions for said delineating left and right costophrenic margins comprise: determining whether one of said left and right hemithoraxes is abnormal based upon the spatial relation between the left and right costophrenic margins.
 33. The medium of claim 31, wherein the computer instructions for said delineating left and right costophrenic margins comprise: placing costophrenic regions of interest (ROIs) having predetermined dimensions over approximate locations of said left and right costophrenic angles in said radiographic chest image.
 34. The medium of claim 33, wherein the computer instructions for said delineating left and right costophrenic margins further comprise: identifying initial diaphragmatic points within each of said costophrenic ROIs.
 35. The medium of claim 34, wherein the computer instructions for said identifying initial diaphragmatic points comprise: a) selecting as a first initial diaphragmatic point for each of said costophrenic ROIs a pixel in a most medial column having the highest contrast; b) selecting as a subsequent initial diaphragmatic point in each of said costophrenic ROIs a pixel in a predetermined search region lateral to a column containing a last selected initial diaphragmatic point; c) determining if there is an upward trend in the initial diaphragm points; and d) repeating substeps b) and c) if no upward trend is detected in substep c); wherein said delineating left and right costophrenic margins further comprises: fitting a parabolic curve to the diaphragm points which do not contribute to the upward trend determined in substep c) to construct a diaphragmatic curve.
 36. The medium of claim 35, wherein the computer instructions for said delineating left and right costophrenic margins further comprise: identifying initial costal points within each of said costophrenic ROIs.
 37. The medium of claim 36, wherein the computer instructions for said identifying initial costal points further comprise: e) selecting as the first initial costal point for each of said left and right costophrenic ROIs a pixel in an uppermost row in each of said costophrenic ROIs having a highest gray-level; f) selecting as a subsequent initial costal point in each costophrenic angle ROI a pixel in a predetermined search region inferior to a row containing a last selected initial costal point; and g) repeating substep f) until in substep f) a costal point is selected that is inferior to said diaphragmatic curve.
 38. The medium of claim 31, further comprising: assigning a degree of costophrenic angle abnormality for at least one of said left and right costophrenic angles based on a measurement angle defined by a vertex located at the intersection of the costal and diaphragmatic curves and by two lines extending from the vertex to predetermined points along the costal and diaphragmatic curves, respectively.
 39. A system for identifying lung fields within a chest region based on posteroanterior chest radiographic images, comprising: an image acquisition device configured to generate first image data representative of a posteroanterior chest image inclusive of lung fields; a global gray-level thresholding unit configured to process said first image data to generate a processed image of the chest region inclusive of the lung fields; means for identifying the lung fields in said processed image of the chest region; and means for constructing, based on the lung fields identified in said processed image, first initial lung segmentation contours for said posteroanterior chest image.
 40. The system of claim 39, further comprising: a gray-level histogram analysis unit configured to perform a global gray-level histogram analysis of said posteroanterior chest radiographic image to identify a maximum gray-level and a minimum gray-level which designate a gray-level threshold range; wherein said global gray-level thresholding unit comprises: a) means for generating a binary image with pixels having either a first logic level or a second logic level based on a gray-level threshold within said gray-level threshold range, said binary image provides said processed image; b) means for iteratively using said a) means a predetermined number of times at progressively larger gray-level thresholds within the gray-level threshold range; and c) means for processing said binary image to eliminate pixels outside the lung fields.
 41. The system of claim 40, wherein said c) means comprises: means for constructing intermediate lung segmentation contours representing boundaries of groups of contiguous pixels having said first logic level; means for determining the centroid for each of said intermediate lung segmentation contours; means for detecting centroids outside the lung fields; and means for prohibiting regions of the binary image defined by intermediate lung segmentation contours with centroids outside the lung fields from having said first logic level during subsequent iterations of using said a) means.
 42. The system of claim 41 wherein said global gray-level thresholding analysis unit further comprises: means for smoothing the intermediate lung segmentation contours constructed during the last iteration of using said a) means to provide said first initial lung segmentation contours.
 43. The system of claim 39, further comprising: a local gray-level thresholding unit configured to perform, based on said first initial lung segmentation contours, local threshold analysis to construct second initial lung segmentation contours for said posteroanterior chest image.
 44. The system of claim 43, wherein said local gray-level thresholding unit further comprises: means for positioning regions-of-interest (ROIs) along said first initial lung segmentation contours; means for performing local gray-level thresholding within each of said ROIs; means for generating a composite binary image based on an output of said means for performing local gray-level thresholding; and means for constructing based on said composite binary image said second initial lung segmentation contours for said posteroanterior chest image.
 45. The system of claim 43, further comprising: a rolling ball filter unit configured to eliminate large-scale concavities in said second initial lung segmentation contours to construct for said posteroanterior chest image third initial lung segmentation contours representative of lung fields.
 46. The system of claim 39, further comprising: means for delineating costophrenic angle margins for each of said lung fields; and means for constructing final lung segmentation contours based on said first initial lung segmentation contours and said costophrenic angle margins.
 47. The system of claim 46, wherein said means for constructing final lung segmentation contours comprises: a local gray-level thresholding unit configured to construct second initial lung segmentation contours based on said first initial lung segmentation contours; and a splicing unit configured to splice said costophrenic angle margins to said second initial lung segmentation contours to construct said final lung segmentation contours.
 48. The system of claim 46, wherein said means for delineating costophrenic angle margins comprises: a) means for placing costophrenic regions of interest (ROIs) over approximate locations of each costophrenic angle as determined based on the first initial lung segmentation contours; b) means for identifying diaphragm border points within each of said ROIs; c) means for identifying costal border points within each of said ROIs; d) means for checking the placement of said ROIs at least once to determine whether the ROIs were positioned accurately by said a) means; and e) means for iteratively using means a) through d) if it is determined by d) means that the ROIs were not accurately positioned by said a) means.
 49. The system of claim 46, wherein said means for delineating costophrenic angle margins comprises: means for determining whether said posteroanterior chest image exhibits an abnormal hemithorax.
 50. A system for analyzing costophrenic angles in radiographic chest images, comprising: an image acquisition device for generating a radiographic chest image inclusive of a left hemithorax having a left costophrenic angle and of a right hemithorax having a right costophrenic angle; means for delineating in said radiographic chest image a left costophrenic margin and a right costophrenic margin which correspond to the left and right costohprenic angles, respectively; and means for determining the angles formed by each of said left and right costophrenic margins.
 51. The system of claim 50, wherein said means for delineating said left and right costophrenic margins comprises: means for determining whether one of said left and right hemithoraxes is abnormal based upon the spatial relation between the left and right costophrenic margins.
 52. The system of claim 50, wherein said means for delineating left and right costophrenic margins comprises: a costophrenic angle ROI placement unit configured to place costophrenic regions of interest (ROIs) with predetermined dimensions over approximate locations of said left and right costophrenic angles in said radiographic chest image.
 53. The system of claim 52, wherein said means for delineating said left and right costophrenic margins further comprises: a diaphragm border point selection unit configured to identify initial diaphragmatic points within each of said costophrenic ROIs.
 54. The system of claim 53, wherein said diaphragm border point selection unit comprises: a) means for selecting as a first initial diaphragmatic point for each of said costophrenic ROIs a pixel in a most medial column having the highest contrast; b) means for selecting as a subsequent initial diaphragmatic point in each of said costophrenic ROIs a pixel in a predetermined search region lateral to a column which contains a last selected initial diaphragmatic point; c) means for determining if there is an upward trend in the initial diaphragm points; and d) means for repeating the use of means b) and c) if no upward trend is detected by means c); wherein said means for delineating left and right costophrenic margins further comprises: a diaphragm parabolic curve-fitting unit configured to fit a parabolic curve to the diaphragmatic points which do not contribute to the upward trend determined by means c) to construct a diaphragmatic curve.
 55. The system of claim 54, wherein said means for delineating left and right costophrenic margins further comprises: a ribcage border point selection unit configured to identify initial costal points within each of said costophrenic ROIs.
 56. The system of claim 55, wherein said ribcage border point selection unit comprises: e) means for selecting as the first initial costal point for each of said left and right costophrenic ROIs a pixel in an uppermost row in each of said costophrenic ROIs having a highest gray-level; f) means for selecting as a subsequent initial costal point in each costophrenic angle ROI a pixel in a predetermined search region inferior to a row containing a last selected initial costal point; and g) means for repeating the use of means f) until a costal point which is inferior to said diaphragmatic curve is selected by means f).
 57. The system of claim 50, further comprising: means for assigning a degree of costophrenic angle abnormality for at least one of said left and right costophrenic angles based on a measurement angle defined by a vertex located at the intersection of the costal and diaphragmatic curves and by two lines extending from the vertex to predetermined points along the costal and diaphragmatic curves, respectively. 